package me.xiaoyan.java.accp.s2;

public abstract class Pet {
	private String name;
	private int health;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the health
	 */
	public int getHealth() {
		return health;
	}

	/**
	 * @param health
	 *            the health to set
	 */
	public void setHealth(int health) {
		this.health = health;
	}

	public Pet(String name) {
		this.name = name;
	}

	public abstract void eat();
}
